package com.supeng.PMdepot.common;

import android.os.Environment;

import com.duowan.mobile.netroid.DefaultRetryPolicy;

/**
 * Created by Supeng on 2018/8/15.
 */

public class Constant {

    public static boolean isNetWorkOn=true;
    public static String http="http://";
    public static String ip="47.94.160.7:8080";
    public static String getBaseUrl() {
        return http+Config.getIpAdress();
    }

    public static long jiegeTimer= 24*3600*1000*14;
    public static int pageSize=20;
    // TODO: 2017/9/19 是否有guide展示页面
    public static boolean hasGuide=false;
    //是否启用全站缓存
    public static boolean isCache=false;
    //设置网络最大请求时间
    public static int maxRequestTimer= 30000;//DefaultRetryPolicy.DEFAULT_TIMEOUT_MS
    //设置网络请求次数
    public static int maxRequestCount= DefaultRetryPolicy.DEFAULT_MAX_RETRIES;
    // 短信appid
    public static String sms_id = "23c8ba09abda6";
    public static String sms_secret = "78a19c143622d96012a7a62b65c546e8";
    /**文件保存目录*/
    public static final String SaveDirPath = Environment.getExternalStorageDirectory() + "/clothesM/";
    public static final String SaveApkDirPath = Environment.getExternalStorageDirectory() + "/clothesM/apk/";
    public static final String SaveCrashDirPath = Environment.getExternalStorageDirectory() + "/clothesM/crash/";
    public static final String SaveAPkFile = SaveApkDirPath + "clothesM.apk";
    //未处理
    public static final String WEICHULI="10";
    //处理中
    public static final String ChuLIZHONG="20";
    //已处理
    public static final String YICHULI="30";
    //撤销
    public static final String CHEXIAO="40";
    //报修人
    public static final String BAOXIUREN="1";
    //维修人
    public static final String WEIXIUREN="2";
    //管理员
    public static final String GUANLIYUAN="3";

    //人员类型
    public static final String REYUAN_TYPE = "REYUAN_TYPE";
    //处理状态 未处理 处理中 已处理
    public static final String DOING_TYPE = "DOING_TYPE";

    public static final int PAGE_SIZE=10;

    public static final String NETWORK_ACTION_EXIT = "NETWORK_ACTION_EXIT";
    public static final String ADDRESS_GET_REFRESH_ACTION = "ADDRESS_GET_REFRESH_ACTION";
    public static final String ORDER_REFRESH_ACTION = "ORDER_REFRESH_ACTION";
    public static final String WXPAY_GET_RESPOND = "WXPAY_GET_RESPOND";

    //库房二维码KEY
    public static String KuFangkey="C";
    //产品二维码KEY
    public static String ChanPinKey="5";
    //派工单二维码KEY
    public static String PaiGongDanKey="R";
    //大仓位二维码KEY
    public static String DAKuFangkey="S";
    //颜色KEY
    public static String Colorkey="Y";
}
